<?php
    error_reporting(E_ALL || ~E_NOTICE);
    require_once("ReturnBean.php");
    $password = $_REQUEST["password"];
    $redis = new Redis();
    $redis->connect('47.105.38.70',6379);
    $redis->auth('123456');
    if(trim($redis->get("shtpwd"),'"')!=$password+""){
        echo json_encode(new ResultBean(502,"errorPass","密码错误！"),JSON_UNESCAPED_UNICODE);
    }else{
        echo json_encode(new ResultBean(200,"verify success","success"),JSON_UNESCAPED_UNICODE);
    }
?>